import CommonApi from './common'
// 公路状况评定
class ExpenseAnalysisApi extends CommonApi {
    constructor() {
        const scope = '/dataAnalysis'
        super(scope)
    }

    // 数据统计分析--养护预算&养护支出&养护次数
    budgetExpenseCount(data) {
        const path = this.resolvePath('/budgetExpenseCount')
        return this.post(path, data)
    }

    // 数据统计分析--养护支出&养护次数&养护工程状态
    expenseCountStatus(data) {
        const path = this.resolvePath('/expenseCountStatus')
        return this.post(path, data)
    }

    // 数据统计分析--巡检缺陷统计&道路健康统计
    defectRoadHealth(data) {
        const path = this.resolvePath('/defectRoadHealth')
        return this.post(path, data)
    }
}

export default ExpenseAnalysisApi
